Skip to content

ci: push monthly output to main via app-token bypass#11

Merged
gabrielspadon merged 1 commit into
mainfrom
ci/app-token-push
Jul 5, 2026
Merged

ci: push monthly output to main via app-token bypass#11
gabrielspadon merged 1 commit into
mainfrom
ci/app-token-push

Conversation

@gabrielspadon

Copy link
Copy Markdown
Collaborator

Prep for the required-PR ruleset on main. Mints a short-lived maps-lab-ci-bot app token right before the monthly commit-to-main push (app tokens expire in 1h, the pipeline loop can run hours) and pushes as the App — a ruleset bypass actor. The built-in GITHUB_TOKEN cannot bypass a required-PR rule. Cache push to data-cache is unchanged (that branch isn't protected).

The required-PR ruleset on main blocks the built-in GITHUB_TOKEN. Mint a maps-lab-ci-bot app token immediately before the push (app tokens live 1h; the pipeline loop can run for hours) and push as the app, which is a ruleset bypass actor.
Copilot AI review requested due to automatic review settings July 5, 2026 15:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the monthly refresh workflow to push generated output/ data directly to main using a GitHub App installation token, enabling bypass of the upcoming required-PR ruleset for automated monthly updates.

Changes:

  • Mint a short-lived GitHub App token immediately before the main push.
  • Switch the main push to authenticate as the App (ruleset bypass actor) instead of using GITHUB_TOKEN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +184 to +188
# Fresh token minted here (not at checkout): the pipeline loop can run for
# hours and an app token lives only 1h, so mint it immediately before the push.
- name: Generate push token
id: push_token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
@gabrielspadon gabrielspadon merged commit 4f145ab into main Jul 5, 2026
10 checks passed
@gabrielspadon gabrielspadon deleted the ci/app-token-push branch July 5, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants